﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.Collections.Generic;

namespace TrinityEngine
{
    public class Font
    {
        public readonly SpriteFont font;

        public readonly float size;

        public Font(Texture2D texture, int size)
        {
            /*this.size = size;
            int width = texture.Width / size;
            List<Rectangle> glyphBounds = new List<Rectangle>();
            List<Rectangle> cropping = new List<Rectangle>();
            List<Vector3> kerning = new List<Vector3>();
            Rectangle defaultcropping = new Rectangle(0, 0, size, size);
            Vector3 defaultKerning = new Vector3(0f, size / 2f, 0f);
            for (int i = 0; i < 95; i++)
            {
                int x = i % width;
                int y = i / width;
                glyphBounds.Add(new(x * size, y * size, size, size));
                cropping.Add(defaultcropping);
                kerning.Add(defaultKerning);
            }
            font = new SpriteFont(texture, glyphBounds, cropping, new List<char>(" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"), 1, 0f, kerning, null);*/
        }
    }
}
